/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmPrincipal.java
 *
 * Created on 23/09/2009, 20:11:05
 */

package principal.telas;


import agenda.telas.FrmAgendaCursos;
import associados.telas.FrmConsultaAssociado;
import caixa.telas.FrmConsultaCaixa;
import contaspagar.telas.FrmConsultaPagar;
import contasreceber.telas.FrmConsultaReceber;
import convenios.telas.FrmCadastroConvenio;
import cursos.telas.FrmConsultaCurso;
import entidade.telas.FrmCadastroEntidade;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.UIManager;
import professor.telas.FrmConsultaProfessor;


/**
 *
 * @author Gabi
 */
public class FrmPrincipal extends javax.swing.JFrame {

    /** Creates new form FrmPrincipal */
    public FrmPrincipal() {
        initComponents();
        this.setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        URL url = this.getClass().getResource("/imagens/logo_mini.png");
        Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);
        this.setIconImage(imagemTitulo);
        try{
            UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
        }catch (Exception e){
            e.printStackTrace();
        }
        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JToolBar.Separator();
        jButton4 = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JToolBar.Separator();
        jButton5 = new javax.swing.JButton();
        jToolBar2 = new javax.swing.JToolBar();
        jButton2 = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JToolBar.Separator();
        jButton6 = new javax.swing.JButton();
        jSeparator4 = new javax.swing.JToolBar.Separator();
        jButton7 = new javax.swing.JButton();
        jToolBar3 = new javax.swing.JToolBar();
        jButton3 = new javax.swing.JButton();
        jSeparator5 = new javax.swing.JToolBar.Separator();
        jButton8 = new javax.swing.JButton();
        jSeparator6 = new javax.swing.JToolBar.Separator();
        jButton9 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("SIGAP - Sistema de Gestão Integrada para Associações de Aposentados");
        setLocationByPlatform(true);
        setMinimumSize(new java.awt.Dimension(860, 600));
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jToolBar1.setFloatable(false);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/associados.png"))); // NOI18N
        jButton1.setToolTipText("Associados");
        jButton1.setFocusable(false);
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        jButton1.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton1.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton1.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PesquisaAssociados(evt);
            }
        });
        jToolBar1.add(jButton1);
        jToolBar1.add(jSeparator1);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/entidade.png"))); // NOI18N
        jButton4.setToolTipText("Entidade");
        jButton4.setFocusable(false);
        jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton4.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton4.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton4.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaEntidade(evt);
            }
        });
        jToolBar1.add(jButton4);
        jToolBar1.add(jSeparator2);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/convenios.png"))); // NOI18N
        jButton5.setToolTipText("Convênios");
        jButton5.setFocusable(false);
        jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton5.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton5.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton5.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaConvenio(evt);
            }
        });
        jToolBar1.add(jButton5);

        jPanel1.add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 50, 780, 90));

        jToolBar2.setFloatable(false);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cursos.png"))); // NOI18N
        jButton2.setToolTipText("Cursos");
        jButton2.setFocusable(false);
        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        jButton2.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton2.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton2.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaCursos(evt);
            }
        });
        jToolBar2.add(jButton2);
        jToolBar2.add(jSeparator3);

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/professores.png"))); // NOI18N
        jButton6.setToolTipText("Professores");
        jButton6.setFocusable(false);
        jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton6.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton6.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton6.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaProfessores(evt);
            }
        });
        jToolBar2.add(jButton6);
        jToolBar2.add(jSeparator4);

        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/agenda.png"))); // NOI18N
        jButton7.setToolTipText("Matrículas");
        jButton7.setFocusable(false);
        jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton7.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton7.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton7.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaAgenda(evt);
            }
        });
        jToolBar2.add(jButton7);

        jPanel1.add(jToolBar2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 150, 780, 90));

        jToolBar3.setFloatable(false);

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/caixa.png"))); // NOI18N
        jButton3.setToolTipText("Caixa");
        jButton3.setFocusable(false);
        jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        jButton3.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton3.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton3.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaCaixa(evt);
            }
        });
        jToolBar3.add(jButton3);
        jToolBar3.add(jSeparator5);

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pagar.png"))); // NOI18N
        jButton8.setToolTipText("Contas à Pagar");
        jButton8.setFocusable(false);
        jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton8.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton8.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton8.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaApagar(evt);
            }
        });
        jToolBar3.add(jButton8);
        jToolBar3.add(jSeparator6);

        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/receber.png"))); // NOI18N
        jButton9.setToolTipText("Contas à Receber");
        jButton9.setFocusable(false);
        jButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton9.setMaximumSize(new java.awt.Dimension(246, 90));
        jButton9.setMinimumSize(new java.awt.Dimension(246, 90));
        jButton9.setPreferredSize(new java.awt.Dimension(256, 90));
        jButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaReceber(evt);
            }
        });
        jToolBar3.add(jButton9);

        jPanel1.add(jToolBar3, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 250, 780, 90));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/teste2.png"))); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 210, -1, 400));

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/sigap.png"))); // NOI18N
        jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 380, -1, -1));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/get_mini.png"))); // NOI18N
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 570, -1, -1));

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 870, 610));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void PesquisaAssociados(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PesquisaAssociados
        new FrmConsultaAssociado();
    }//GEN-LAST:event_PesquisaAssociados

    private void consultaEntidade(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaEntidade
        new FrmCadastroEntidade();
}//GEN-LAST:event_consultaEntidade

    private void consultaConvenio(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaConvenio
        new FrmCadastroConvenio();
    }//GEN-LAST:event_consultaConvenio

    private void consultaCursos(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaCursos
        new FrmConsultaCurso();
    }//GEN-LAST:event_consultaCursos

    private void consultaProfessores(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaProfessores
        new FrmConsultaProfessor();
    }//GEN-LAST:event_consultaProfessores

    private void consultaAgenda(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaAgenda
        new FrmAgendaCursos();
    }//GEN-LAST:event_consultaAgenda

    private void consultaCaixa(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaCaixa
        new FrmConsultaCaixa();
    }//GEN-LAST:event_consultaCaixa

    private void consultaApagar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaApagar
        new FrmConsultaPagar();
    }//GEN-LAST:event_consultaApagar

    private void consultaReceber(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaReceber
       new FrmConsultaReceber();
    }//GEN-LAST:event_consultaReceber

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmPrincipal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar.Separator jSeparator1;
    private javax.swing.JToolBar.Separator jSeparator2;
    private javax.swing.JToolBar.Separator jSeparator3;
    private javax.swing.JToolBar.Separator jSeparator4;
    private javax.swing.JToolBar.Separator jSeparator5;
    private javax.swing.JToolBar.Separator jSeparator6;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JToolBar jToolBar3;
    // End of variables declaration//GEN-END:variables

}
